import cv2

image = cv2.imread('/media/develop/data/cloud/image/blocks/02.png', cv2.COLOR_BGR2GRAY)
ret, thresh = cv2.threshold(image, 30, 255, 0)

cv2.imshow('aa', thresh)
cv2.waitKey()
